import request from '@/utils/request'

//查询字段别名记录
export function listColAlias(query) {
  return request({
    url: '/colAlias',
    method: 'get',
    params: query
  })
}

//更新数据
export function updateColAlias(data){
  return request({
    url: '/colAlias',
    method: 'put',
    data: data
  })
}

//获取字段别名
export function getColAlias(id){
  return request({
    url: '/colAlias/' + id,
    method: 'get'
  })
}

export function syncCol(data) {
  return request({
    url: '/colAlias/syncColumns',
    method: 'post',
    data: data
  })
}

export function treeselect(query) {
  return request({
    url: '/colAlias/treeSelect',
    method: 'get',
    params: query
  })
}
